<?php 
error_reporting(0);
$isadmin=1;
include "../comm/config.php";
include "check.php";
if($_POST['chg']!=''){
	$taoappKey=$_POST["taoappKey"]; 
	$taoappSecret=$_POST["taoappSecret"]; 
	$qqappKey=$_POST["qqappKey"]; 
	$qqappSecret=$_POST["qqappSecret"];
	$qqlappKey=$_POST["qqlappKey"]; 
	$qqlappSecret=$_POST["qqlappSecret"];
	$sinaappKey=$_POST["sinaappKey"]; 
	$sinaappSecret=$_POST["sinaappSecret"]; 
	$alipayappKey=$_POST["alipayappKey"]; 
	$alipayappSecret=$_POST["alipayappSecret"]; 
	$kaixinappKey=$_POST["kaixinappKey"]; 
	$kaixinappSecret=$_POST["kaixinSecret"]; 
	
	$taoappon=$_POST["taoappon"]; 
	$qqappon=$_POST["qqappon"]; 
	$qqlappon=$_POST["qqlappon"]; 
	$sinaappon=$_POST["sinaappon"]; 
	$alipayappon=$_POST["alipayappon"]; 
	$kaixinappon=$_POST["kaixinappon"]; 
	
	$apireg=$_POST['apireg'];

	$sql="replace into ".$BIAOTOU."apireg (id,taoappKey,taoappSecret,qqappKey,qqappSecret,qqlappKey,qqlappSecret,sinaappKey,sinaappSecret,alipayappKey,alipayappSecret,kaixinappKey,kaixinappSecret,taoappon,qqappon,qqlappon,sinaappon,alipayappon,kaixinappon,apireg) values(1,'$taoappKey','$taoappSecret','$qqappKey','$qqappSecret','$qqlappKey','$qqlappSecret','$sinaappKey','$sinaappSecret','$alipayappKey','$alipayappSecret','$kaixinappKey','$kaixinappSecret','$taoappon','$qqappon','$qqlappon','$sinaappon','$alipayappon','$kaixinappon','$apireg')";
	mysql_query($sql);
	mysql_close();
	echo "<script language=javascript>window.location='appset.php';</script>";
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
table,tr,td { font-size:12px;}
table a { text-decoration:none; color:#FF6600}
table a:visted { color:#FF66CC; text-decoration:none}
-->
</style>
</head>
<body topmargin="5" leftmargin="0">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr>
    <td height="282" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>
          <table cellspacing="0" width="100%" height="207" style="border:1px  solid #DCEAF7;">
            <tr>
              <td height="30" colspan="2" bgcolor="E9F2FB" class="bigtext"><strong>&nbsp;<img src="../images/arrow.gif" width="16" height="22" align="absmiddle" /> 一键账号通设置 </strong></td>
          </tr>
            <tr>
              <td width="100%" colspan="2" valign="top"><table width="100%" height="300" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td valign="top"><form id="form1" name="form1" method="post" action="appset.php">
                    <br />
                    <table width="720"  align="center" border=1 cellpadding=0 cellspacing=0 style="border-collapse: collapse" bordercolor="#dddddd">
					 <tr>
                        <td width="129" height="30" align="right" class="bigtext">自动注册方式：</td>
                        <td width="597" height="30" class="bigtext">&nbsp;
                        <input <?php if(APIREG==0){?> checked="checked"<?php }?> type="radio" value="0" name="apireg" /> 会员使用第三方登陆返回网站后，点击注册，网站自动给会员配置一个初始密码。
                        </td>
                      </tr>
                      <tr>
                        <td width="129" height="30" align="right" class="bigtext">填写资料方式：</td>
                        <td width="597" height="30" class="bigtext">&nbsp;
                        <input <?php if(APIREG==1){?> checked="checked"<?php }?> type="radio" value="1" name="apireg" /> 会员使用第三方登陆返回网站后，点击注册，需要填写密码邮箱等有效信息。
                        </td>
                      </tr>
                      <tr>
                        <td height="3" align="right" class="bigtext" colspan="2"><hr/></td>
                      </tr>
					  <tr>
                        <td width="129" height="30" align="right" class="bigtext">淘宝KEY：</td>
                        <td width="597" height="30" class="bigtext">&nbsp;
                          <input name="taoappKey" type="text" id="taoappKey" value="<?=defined("TAOAPPKEY")?TAOAPPKEY:''?>" size="40" class="btn3" style="width:300px" /> 淘宝登陆：                        </td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">淘宝SECRET：</td>
                        <td height="30" class="bigtext">&nbsp;
                          <input name="taoappSecret" type="password" id="taoappSecret" value="<?=defined("TAOAPPSECRET")?TAOAPPSECRET:''?>" size="40" class="btn3" style="width:300px" /> <label>开启<input <?php if(TAOAPPON==1){?> checked="checked" <?php }?> type="radio" name="taoappon" value="1" /></label>&nbsp;&nbsp;<label>关闭<input <?php if(TAOAPPON==0){?> checked="checked" <?php }?> type="radio" name="taoappon" value="0" />
<a href="http://soft.duoduo123.com/help/V70/2011/0625/155.html" target="_blank">打开帮助文档</a></label></td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">回调地址：</td>
                        <td height="30" class="bigtext">&nbsp;http://<?=URL?>                          /api/login_tb/callback.php (应用为“淘宝客网站”类型)</td>
                      </tr>
                      <tr>
                        <td height="3" align="right" class="bigtext" colspan="2"><hr/></td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">腾讯微薄KEY：</td>
                        <td height="30" class="bigtext">&nbsp;
                          <input name="qqappKey" type="text" id="qqappKey" value="<?=defined("QQWB_AKEY")?QQWB_AKEY:''?>" size="40"  class="btn3" style="width:300px" /> 腾讯微薄登陆：</td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">腾讯微薄SECRET：</td>
                        <td height="30" class="bigtext">&nbsp;
                          <input name="qqappSecret" type="password" id="qqappSecret" value="<?=defined("QQWB_SKEY")?QQWB_SKEY:''?>" size="40"  class="btn3" style="width:300px"/> <label>开启<input value="1" <?php if(QQAPPON==1){?> checked="checked"<?php }?> type="radio" name="qqappon" /></label>&nbsp;&nbsp;<label>关闭<input <?php if(QQAPPON==0){?> checked="checked"<?php }?> type="radio" name="qqappon"  value="0" /> 
<a href="http://soft.duoduo123.com/help/V70/2011/0625/156.html" target="_blank">打开帮助文档</a></label></td>
                      </tr>
                      <tr>
                        <td height="3" align="right" class="bigtext" colspan="2"><hr/></td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">支付宝partnerID：</td>
                        <td height="30" class="bigtext">&nbsp;
                          <input name="alipayappKey" type="text" id="alipayappKey" value="<?=defined("ALIPAY_PID")?ALIPAY_PID:''?>" size="40"  class="btn3" style="width:300px" /> 支付宝登陆：</td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">支付宝KEY：</td>
                        <td height="30" class="bigtext">&nbsp;
                          <input name="alipayappSecret" type="password" id="alipayappSecret" value="<?=defined("ALIPAY_KEY")?ALIPAY_KEY:''?>" size="40"  class="btn3" style="width:300px"/> 
<label>开启<input value="1" <?php if(ALIPAYAPPON==1){?> checked="checked"<?php }?> type="radio" name="alipayappon" /></label><label>关闭<input <?php if(ALIPAYAPPON==0){?> checked="checked"<?php }?> type="radio" name="alipayappon"  value="0" /></label>
&nbsp;<a href="http://soft.duoduo123.com/help/V70/2011/0629/160.html" target="_blank">打开帮助文档</a></td>
                    </tr>
                      <tr>
                        <td height="3" align="right" class="bigtext" colspan="2"><hr/></td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">QQ空间APP ID：</td>
                  <td height="30" class="bigtext">&nbsp;
                          <input name="qqlappKey" type="text" id="qqlappKey" value="<?=defined("QQLOGIN_AKEY")?QQLOGIN_AKEY:''?>" size="40"  class="btn3" style="width:300px" /> QQ空间登陆：</td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">QQ空间APP KEY：</td>
                  <td height="30" class="bigtext">&nbsp;
                          <input name="qqlappSecret" type="password" id="qqlappSecret" value="<?=defined("QQLOGIN_SKEY")?QQLOGIN_SKEY:''?>" size="40"  class="btn3" style="width:300px"/> <label>开启<input value="1" <?php if(QQLAPPON==1){?> checked="checked"<?php }?> type="radio" name="qqlappon" /></label>&nbsp;&nbsp;<label>关闭<input <?php if(QQLAPPON==0){?> checked="checked"<?php }?> type="radio" name="qqlappon"  value="0" />
<a href="http://soft.duoduo123.com/help/V70/2011/0625/157.html" target="_blank">打开帮助文档</a></label></td>
                      </tr>
                      <tr>
                        <td height="3" align="right" class="bigtext" colspan="2"><hr/></td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">新浪微薄KEY：</td>
                        <td height="30" class="bigtext">&nbsp;
                      <input name="sinaappKey" type="text" id="sinaappKey" value="<?=defined("SWB_AKEY")?SWB_AKEY:''?>" size="40"  class="btn3" style="width:300px" /> 新浪微薄登陆：                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">新浪微薄SECRET：</td>
                        <td height="30" class="bigtext">&nbsp;
                          <input name="sinaappSecret" type="password" id="sinaappSecret" value="<?=defined("SWB_SKEY")?SWB_SKEY:''?>" size="40"  class="btn3" style="width:300px" /> <label>开启<input value="1" <?php if(SINAAPPON==1){?> checked="checked"<?php }?> type="radio" name="sinaappon" /></label>&nbsp;&nbsp;<label>关闭<input <?php if(SINAAPPON==0){?> checked="checked"<?php }?> type="radio" name="sinaappon"  value="0" /></label>
                      <a href="http://soft.duoduo123.com/help/V70/2011/0625/158.html" target="_blank">打开帮助文档</a></tr>
                      <tr>
                        <td height="3" align="right" class="bigtext" colspan="2"><hr/></td>
                      </tr>
                                            <tr>
                        <td height="30" align="right" class="bigtext">开心网KEY：</td>
                        <td height="30" class="bigtext">&nbsp;
                      <input name="kaixinappKey" type="text" id="kaixinappKey" value="<?=defined("KAIXIN_AKEY")?KAIXIN_AKEY:''?>" size="40"  class="btn3" style="width:300px" /> 开心网登陆：                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">开心网SECRET：</td>
                        <td height="30" class="bigtext">&nbsp;
                          <input name="kaixinSecret" type="password" id="kaixinSecret" value="<?=defined("KAIXIN_SKEY")?KAIXIN_SKEY:''?>" size="40"  class="btn3" style="width:300px" /> <label>开启<input value="1" <?php if(KAIXINAPPON==1){?> checked="checked"<?php }?> type="radio" name="kaixinappon" /></label>&nbsp;&nbsp;<label>关闭<input <?php if(KAIXINAPPON==0){?> checked="checked"<?php }?> type="radio" name="kaixinappon"  value="0" /></label>
                      <a href=" http://soft.duoduo123.com/help/V70/2011/1217/293.html" target="_blank">打开帮助文档</a></tr>
                      <tr>
                        <td height="30" align="right">&nbsp;</td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="submit" name="Submit" value=" 保 存 设 置 " />
                          <input type="hidden" name="chg" value="1" />                         </td>
                      </tr>
                    </table>
                  <br />
                  </form>
                  </td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
      
    </table></td>
  </tr>
</table>
</div>
<script src="../js/jquery.js" type="text/javascript"></script>
<script src="../js/facebox.js" type="text/javascript"></script>
<link href="../js/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    jQuery(document).ready(function($) {
      $('a[rel*=facebox]').facebox() 
    })
</script>
<div id="mydiv" style="display:none; font:12px; color:#666666;">
<br/>您好！若需增加商城返现必须要注册联盟账号，为了更多分享我们官方特别优惠<br/>强烈建议<span style="font-size:14px; color:#FF0000; font-weight:bold">推荐人写 “ duoduo123 ”</span>你们将可获得与我们官方同级别优惠待遇。<br/><br/>
&nbsp;&nbsp;&nbsp; <a href="http://www.linktech.cn/home/linktech_affil_join08.htm" target="_blank">知道了，立刻注册</a><br/>
<br/>我们的领客特账号为<span style="font-size:12px; color:#FF0000; font-weight:bold">duoduo123 </span>
</div>
<div id="mydiv_yqf" style="display:none; font:12px; color:#666666;">
<br/>您好！若需增加商城返现必须要注册联盟账号，为了更多分享我们官方特别优惠。<br/>强烈建议<span style="font-size:14px; color:#FF0000; font-weight:bold">推荐人写 “ 多多返利 ”</span>你们将可获得与我们官方同级别优惠待遇。<br/><br/>
&nbsp;&nbsp;&nbsp; <a href="http://www.yiqifa.com/userRegEdit.do?regType=earner" target="_blank">知道了，立刻注册</a><br/>
<br/>我们的亿起发账号为<span style="font-size:12px; color:#FF0000; font-weight:bold">多多返利 </span>
</div>
</body>
</html>
<?php mysql_close($link);?>
